package com.lekang.controller;

import com.lekang.R;
import com.lekang.ZcqEntity.BedDetailDTO;
import com.lekang.ZcqEntity.carer;
import com.lekang.common.core.controller.BaseController;
import com.lekang.le.service.LaoRenZcqService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/system/job")
public class LaoRenZcqController extends BaseController {
    @Autowired
    private LaoRenZcqService laoRenZcqService;
    @RequestMapping("/list")
    public R list(){
    List<BedDetailDTO> floorVOList = laoRenZcqService.list();

        return R.ok(floorVOList);
    }
    @RequestMapping("/carerList")
    public R carerList(){
        List<carer> carerList = laoRenZcqService.carerList();

        return R.ok(carerList);
    }
}
